BBB: Bigle Bone Black
INSTALL
brew install crosstool-ng
OR
git clone https://github.com/crosstool-ng/crosstool-ng.git
cd crosstool-ng
./bootstrap
./configure
make
sudo make install
---
ct-ng list-samples
ct-ng show-arm-cortex_a8-linux-gnueabi # compiler for BBB ์กฐํ
ct-ng arm-cortex_a8-linux-gnueabi # ct-ng arm-unknown-linux-gnueabi
ct-ng menuconfig
ct-ng build
ct-ng distclean
---
~/x-tools/arm-cortex_a8-linux-gnueabihf
export PATH=~/x-tools/arm-cortex_a8-linux-gnueabigf/bin:$PATH
โ
cd ~
hdiutil create -type SPARSE -fs 'Case-sensitive Journaled HFS+' -size 32g -volname csfs csfs
mkdir csfs
hdid -nomount csfs.sparseimage
mount -t hfs /dev/disk4s2 csfs
USAGEarm-cortex_a8-linux-gnueabihf-gcc <c file> -o <exec file>
option
--build=x86_64-build_pc-linux-gnu
--host=x86_64-build-pc-linux-gnu
--target=arm-cortex_a8-linux-gnueabihf
--with-sysroot=/home/dhyang/x-tools/arm-cortex_a8-linux-gnueabihf/arm-cortex_a8-linux-gnueabihf/sysroot (default)
--with-cpu=cortex-a8
--with-float=hard
--disable-multilib
enable-thrads=posix